<div class="container">
  <div class="row">
    <div class="hero-text">
     <h1>修改用户信息</h1>
     <p class="lead">修改成功后将跳转回用户列表页</p>
   </div>
 </div>
</div>
</div>
<div class="container">
  <div class="row">
    
    <h2>用户信息</h2>

    {{if .flash.error}}
    <blockquote>{{.flash.error}}</blockquote>
    {{end}}

    {{if .flash.notice}}
    <blockquote>{{.flash.notice}}</blockquote>
    {{end}}
    
    <p>          
      <form role="form" id="user" method="POST" action="/UpdateUser">
        <div class="form-group {{if .Errors.Name}}has-error has-feedback{{end}}">
          <label for="name">用户姓名： {{if .Errors.Name}}({{.Errors.Name}}){{end}}</label>
          <input name="Name" type="text" value="{{.User.Name}}" class="form-control" tabindex="1" />
          {{if .Errors.Name}}<span class="glyphicon glyphicon-remove form-control-feedback"></span>{{end}}
        </div>
        
        <div class="form-group">
          <label for="client">剩余调休时间：</label>
          <input name="Hours" type="text" value="{{.User.Hours}}" class="form-control" tabindex="2" />小时
        </div>
        <input type="hidden" name="Id" value="{{.User.Id}}"/>
        <input type="submit" value="修改用户" class="btn btn-default" tabindex="3" /> &nbsp;
        <a href="/" title="返回">返回</a>
      </form>
    </p>
  </div>
</div>